class UserInfoModel {
  int? errCode;
  String? errMsg;
  UserInfoRespModel? resp;

  UserInfoModel({this.errCode, this.errMsg, this.resp});

  UserInfoModel.fromJson(Map<String, dynamic> json) {
    errCode = json['ErrCode'];
    errMsg = json['ErrMsg'];
    resp =
        json['Resp'] != null ? UserInfoRespModel.fromJson(json['Resp']) : null;
  }

  Map<String, dynamic> toJson() {
    final Map<String, dynamic> data = {};
    data['ErrCode'] = errCode;
    data['ErrMsg'] = errMsg;
    if (resp != null) {
      data['Resp'] = resp?.toJson();
    }
    return data;
  }
}

class UserInfoRespModel {
  String? discordUserId;
  String? email;
  int? gender;
  String? img;
  String? nickname;
  String phoneNum='';
  String? username;

  UserInfoRespModel(
      {this.discordUserId,
      this.email,
      this.gender,
      this.img,
      this.nickname,
      this.phoneNum='',
      this.username});

  UserInfoRespModel.fromJson(Map<String, dynamic> json) {
    discordUserId = json['DiscordUserId'];
    email = json['Email'];
    gender = json['Gender'];
    img = json['Img'];
    nickname = json['Nickname'];
    phoneNum = json['PhoneNum']??'';
    username = json['Username'];
  }

  Map<String, dynamic> toJson() {
    final Map<String, dynamic> data = {};
    data['DiscordUserId'] = discordUserId;
    data['Email'] = email;
    data['Gender'] = gender;
    data['Img'] = img;
    data['Nickname'] = nickname;
    data['PhoneNum'] = phoneNum;
    data['Username'] = username;
    return data;
  }
}
